package com.lill.workflow.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 当前所执行的流程审核实体
 * 表名 workflow_current_history
 *
 * @author lill
 * @date 2020-07-14 15:13:19
 */
public class WorkflowCurrentHistoryModel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 所属流程
     */
    private String workflowId;
    /**
     * 所属业务
     */
    private String businessId;
    /**
     * 所属业务
     */
    private String businessName;
    /**
     * 业务类型
     */
    private String type;
    /**
     * 审核结果：1待审核；2审核中；3审核结束-通过；4审核结束-不通过;5撤回
     */
    private Integer audit;
    /**
     * 当前审核员工ID
     */
    private String currentEmployeeId;
    /**
     * 下一个审核员工ID
     */
    private String nextEmployeeId;
    /**
     * 原因
     */
    private String reason;
    /**
     * 位置
     */
    private Integer step;
    /**
     * 历史时间
     */
    private Date historyTime;
    
    

    public WorkflowCurrentHistoryModel() {
	}
    
    public WorkflowCurrentHistoryModel(WorkflowCurrentModel currentModel) {
    	this.id=currentModel.getId();
    	this.workflowId=currentModel.getWorkflowId();
    	this.businessId=currentModel.getBusinessId();
    	this.businessName=currentModel.getBusinessName();
    	this.type=currentModel.getType();
    	this.audit=currentModel.getAudit();
    	this.currentEmployeeId=currentModel.getCurrentEmployeeId();
    	this.nextEmployeeId=currentModel.getNextEmployeeId();
    	this.reason=currentModel.getReason();
    	this.step=currentModel.getStep();
    	this.historyTime=new Date();
    }

	/**
     * 设置：主键
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取：主键
     */
    public String getId() {
        return id;
    }
    /**
     * 设置：所属流程
     */
    public void setWorkflowId(String workflowId) {
        this.workflowId = workflowId;
    }

    /**
     * 获取：所属流程
     */
    public String getWorkflowId() {
        return workflowId;
    }
    /**
     * 设置：所属业务
     */
    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    /**
     * 获取：所属业务
     */
    public String getBusinessId() {
        return businessId;
    }
    /**
     * 设置：所属业务
     */
    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    /**
     * 获取：所属业务
     */
    public String getBusinessName() {
        return businessName;
    }
    /**
     * 设置：业务类型
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取：业务类型
     */
    public String getType() {
        return type;
    }
    /**
     * 设置：审核结果：1待审核；2审核中；3审核结束-通过；4审核结束-不通过;5撤回
     */
    public void setAudit(Integer audit) {
        this.audit = audit;
    }

    /**
     * 获取：审核结果：1待审核；2审核中；3审核结束-通过；4审核结束-不通过;5撤回
     */
    public Integer getAudit() {
        return audit;
    }
    /**
     * 设置：当前审核员工ID
     */
    public void setCurrentEmployeeId(String currentEmployeeId) {
        this.currentEmployeeId = currentEmployeeId;
    }

    /**
     * 获取：当前审核员工ID
     */
    public String getCurrentEmployeeId() {
        return currentEmployeeId;
    }
    /**
     * 设置：下一个审核员工ID
     */
    public void setNextEmployeeId(String nextEmployeeId) {
        this.nextEmployeeId = nextEmployeeId;
    }

    /**
     * 获取：下一个审核员工ID
     */
    public String getNextEmployeeId() {
        return nextEmployeeId;
    }
    /**
     * 设置：原因
     */
    public void setReason(String reason) {
        this.reason = reason;
    }

    /**
     * 获取：原因
     */
    public String getReason() {
        return reason;
    }
    /**
     * 设置：位置
     */
    public void setStep(Integer step) {
        this.step = step;
    }

    /**
     * 获取：位置
     */
    public Integer getStep() {
        return step;
    }
    /**
     * 设置：历史时间
     */
    public void setHistoryTime(Date historyTime) {
        this.historyTime = historyTime;
    }

    /**
     * 获取：历史时间
     */
    public Date getHistoryTime() {
        return historyTime;
    }
}
